from multiprocessing import Process
import time

def test():
    while True:
        print("----test----")
        time.sleep(1)

p = Process(target=test)
p.start()# 让这个进程开始执行test函数里面胡代码

#while True:
 #   print("----------main-----------")
  #  time.sleep(1)
